const express = require('express')
const router = express.Router()

const { getHotSceneryData, getSceneryData, getSceneryDetailData } = require('../../controller/web/SceneryController')

// 导入分页中间件
const paginationMiddleware = require('../../middleware/paginationMiddleware');

// 获取景点数据
router.get('/scenery', paginationMiddleware, getSceneryData)

// 获取热门景点数据
router.get('/scenery/hot', getHotSceneryData)

// 获取景点详情数据
router.get('/scenery/detail/:id', getSceneryDetailData)

module.exports = router